﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LevelDictionaryList.ascx.cs" Inherits="Job.Web.userControls.Admin.LevelDictionaryList" %>

<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>


<asp:Label ID="lbFather" runat="server" Text="父类："></asp:Label>
 <br />

<asp:GridView ID="gridDictionary" runat="server" BackColor="White" 
    BorderColor="#7070FF" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" 
    GridLines="Horizontal" AutoGenerateColumns="False" 
    onrowediting="gridDictionary_RowEditing" 
    onrowdatabound="gridDictionary_RowDataBound" Width="100%" 
    CssClass="table_font">
    <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
    <Columns>        
        <asp:TemplateField HeaderText="代码">          
            <ItemTemplate>
                <asp:Label ID="lbSubCode" runat="server" Text='<%# Bind("sub_code") %>'></asp:Label>
            </ItemTemplate>
            <HeaderStyle CssClass="table_font_td" HorizontalAlign="center" />
            <ItemStyle CssClass="table_font_td" HorizontalAlign="Center" Width="30%" />
        </asp:TemplateField>            
            
        <asp:BoundField DataField="dict_name" HeaderText="名称">
            <HeaderStyle CssClass="table_font_td" />
            <ItemStyle HorizontalAlign="Left" CssClass="table_font_td" Width="35%"/>
        </asp:BoundField>      
        
        <asp:TemplateField HeaderText="状态">          
            <ItemTemplate>
                <asp:Label ID="lbStatus" runat="server" Text='<%# Bind("dict_state") %>'></asp:Label>
            </ItemTemplate>
            <HeaderStyle CssClass="table_font_td" HorizontalAlign="center" />
            <ItemStyle CssClass="table_font_td" HorizontalAlign="Center" Width="20%" />
        </asp:TemplateField>          
        
        
        
        <asp:CommandField ShowEditButton="True" EditText="编辑"></asp:CommandField>  
        <asp:TemplateField>
            <ItemTemplate>
                <asp:HyperLink ID="linkSub" Text="配置子项" NavigateUrl="" runat="server"></asp:HyperLink>
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Center" />        
        </asp:TemplateField>
        
        
        <asp:TemplateField>            
            <ItemTemplate>
                <asp:Label ID="lbId" runat="server" Text='<%# Bind("dict_id") %>' Visible=false></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>              
                    
    </Columns>
    <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
    <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
    <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
    <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
    <AlternatingRowStyle BackColor="#F7F7F7" />


</asp:GridView>


<webdiyer:AspNetPager ID="pagerButtom" runat="server" 
	ButtonImageNameExtension="n" ButtonImageExtension=".gif" 
        DisabledButtonImageNameExtension="g" CpiButtonImageNameExtension="r" 
		PagingButtonSpacing="10px" ButtonImageAlign="left" 
		onpagechanged="pagerButtom_PageChanged" CssClass="pagination" 
		CurrentPageButtonClass="current" PagingButtonClass="" 
		PagingButtonLayoutType="Span">
</webdiyer:AspNetPager>
<br />
<asp:Button ID="btNew" runat="server" onclick="btNew_Click" Text= " 新增配置项 " CssClass="btn_2k3"/>&nbsp;&nbsp;
<asp:Button ID="btBack" runat="server" onclick="btBack_Click" Text= " 返 回 " CssClass="btn_2k3"/>

<br />										  
